Quantitative variables:

#single quantitative variable
plot_ly(x = ~quant_var1,
        type = "histogram")
## Warning: Ignoring 1829 observations
#two quantitative variables

Categorical variables:

#one categorical variable
#two categorical variables with different categories
#two categorica variables with same categories